<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<title>苏宁</title>
		<script type="text/javascript">
			var controller = '__CONTROLLER__';
			var root = '__ROOT__';
		</script>
		<link rel="stylesheet" href="__TEMPLATE__/css/publicMenuforUser.css" />
		<link rel="stylesheet" href="__TEMPLATE__/css/mycarStep_2.css" />
		<script type="text/javascript" src="__TEMPLATE__/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__TEMPLATE__/js/public.js"></script>
<script type="text/javascript" src="__TEMPLATE__/js/mycar_2.js"></script>
	</head>

	<body>

		<!-- 头部开始 -->
		<div id="head">
			<!-- 头部内容开始 -->
			<div class="header">
				<!-- 登陆条 -->
				<include file="__TEMPLATE__/cartopbar" />
				<!-- 登陆条结束 -->
		<div class="banner">
			<div class="logo">
				<a href="__ROOT__/"><img src="__TEMPLATE__/images/suning.png" height="60" width="190" alt=""></a>
			</div>
			<div class="step">
				<div class="steplist">
					<li class="stepNum">1</li>
					<li class="stepWord">我的购物车</li>
				</div>
				<div class="steplist">
					<li class="stepNum">2</li>
					<li class="stepWord">确认订单</li>
				</div>
				<div class="stepDefaultBg">
					<li class="stepNum">3</li>
					<li class="stepWord">付款</li>
				</div>
				<div class="stepDefaultBg">
					<li class="stepNum">4</li>
					<li class="stepWord">支付成功</li>
				</div>
			</div>

		</div>

<div class="clear"></div>
<form action="" method="post">
<div id="carMain">
<!-- 配送信息开始 -->
	<dvi class="w990">
		<li class="words shopCarWord fleft">配送信息</li>
		<li class=" words fright"></li>
	</dvi>
	<div class="address addressshow">
		<li class="addTit">配送地址</li>
		
		<foreach from="$address" key="$k" value="$v">
		<li class="checkAddress sendto" addressid ='{$v.address_id}'><span class="posi"></span>寄送至： <input type="radio" name="sendto" value="{$v.address_id}" />
    {$v.user_address_name}   {$v.user_address_tel}   {$v.user_address_place}  {$v.user_address_all}<span class="gobackgShopping makedefault"   addressid ='{$v.address_id}'><if value="$v.user_address_isdefault = 0">设为默认地址</if><if value="$v.user_address_isdefault = 1">默认地址</if></span></span> <a class="gobackgShopping editAddress" href="javascript:;" addressid ="{$v.address_id}">修改</a>   <a href='javascript:;' addressid ="{$v.address_id}" class="gobackgShopping delAddress">删除</a>
   
</li>
		</foreach>
		<li class="checkAddress add addAddressbtn"><span class="posi"></span>寄送至： <input type="radio" class="add_address_btn" />添加新地址</li>
		
		<div class="add addNewAddress">
			<div class="userInput">
				<li class="left"><span>*</span>收货人:</li>
				<li class="rightInput">
					<input type="text" name="order_receiver" class="order_receiver" />
					<div class=""><span class="alert user_receiverok"></span></div>
					<div class=""><span class=" error user_receiver"></span></div>
				</li>
				<li class="left"><span>*</span>手机：</li>
				<li class="rightInput">
					<input type="text" name='order_user_tel' class="order_user_tel"/>
					<div class=""><span class=" error tel"></span></div>				
					<div class=""><span class="alert telok"></span></div>
				</li>
								<li class="left"><span>*</span>电话：</li>
				<li class="rightInput">
					<input type="text" name='order_phone' />
				</li>
			<li class="left"><span>*</span>所在地区：</li>
				<li class="rightInput">
					<input type="text" name='order_user_place' />
				</li>
			<li class="left"><span>*</span>详细地址：</li>
				<li class="rightInput">
					<input type="text" name='order_address' class="order_address" />
					<div class=""><span class="error order_addressalert"></span></div>				
					<div class=""><span class="alert order_addressok"></span></div>
				</li>
				<li>
					<input type="button" class="saveUserInfo besureAddress" value="确认" />
					<input type="button" class="saveUserInfo editAddressbtn" value="确认" />
					<input type="button" class="saveUserInfo quit" value="取消" />
				</li>
			</div>
		</div>
	</div>
	<!-- 配送信息结束 -->
	<!-- 支付方式开始 -->
	<dvi class="w990">
		<li class="words shopCarWord fleft">配送信息</li>
		<li class=" words fright"></li>
	</dvi>
	<div class="address">
		<li class="addTit">选择支付方式</li>
		<li class="checkAddress">在线支付： <input type="radio" name="order_payway" value="3"/>  支持易付宝和各主流银行的信用卡，借记卡消费 <a class="gobackgShopping" href="__ROOT__/">查看银行</a> </li>
		<li class="checkAddress add">货到付款： <input type="radio" name="order_payway" value="2"/>  您订单中的商品不支持货到付款</li>
		<li class="checkAddress add">门店付款： <input type="radio"  name="order_payway" value="1"/>    网站下单去就近任意门店付款，支持现金、POS机刷卡 <a class="gobackgShopping" href="__ROOT__/">查看门店地址</a> </li>
		<li class="checkAddress add">账户余额支付： <input type="radio" name="order_payway" value="0"/>    账户充值后可以直接购买使用 <a class="gobackgShopping" href="__ROOT__/">联系客服充值</a> </li>
		<!--<li><input type="button" class="saveUserInfo" value="保存支付方式" />
				</li>-->
		<div class="add">
			
		</div>
	</div>
	<!-- 支付方式结束 -->
	<dvi class="w990">
		<li class="words shopCarWord fleft">商品信息及服务信息  </li>
		<li class=" words fright"> <a class="gobackgShopping" href="__CONTROLLER__/index/"><<回购物车修改商品</a></li>
	</dvi>
	<dvi class="carList">
		<div class="carListTitle">	
		    <li class="googsTitle">商品名称</li>
		    <li class="price">商品价格（元）</li>
		    <li class="nums">数量</li>
		    <li class="doIt">服务信息</li>
		</div>
		<!-- 单条商品信息 -->
		<foreach from="$cartGoods['goods']" key="$k" value="$v">
		<div class="contentset">			
		    <li class="googsTitle" style="width: 200px;">{$v.name}</li>
		    <li class="price"> ¥<span>{$v.total}</span></li>		  
		    <li class="nums">{$v.num}</li>
		    <li class="doIt">免费运费</li>
		</div>
		</foreach>
		<!-- 单条商品信息 结束 -->
		
	</dvi>
	<dvi class="w990">
		<li class="words shopCarWord fleft h1">结算信息</li>
		<li class=" words fright"></li>
	</dvi>
	
	<div class="shopList">
		<div class="listLfet">
			
		</div>
		<div class="listRight">
			<li class="">商品总金额： </li><li class="price">¥{$cartGoods['total']} </li><li class="">运费(以结算页为准)： </li><li class="price">¥
				<?php if($cartGoods['total']<69){ ?>
				10.00
				<?php }?>
				<?php if($cartGoods['total']>69){ ?>
				0.00
				<?php }?>
			</li>
		</div>

		<div class="settle">
			
			<li class="">已选商品{$cartGoods['total_rows']}件 </li><li class="payable">商品应付金额： </li><li class="price">¥
				<?php 

				if($cartGoods['total'] >69){ 

					echo $cartGoods['total'];

				}else if($cartGoods['total'] <69){

					echo $cartGoods['total'] + 10;

				}
				?>
				
			
			</li><li class="send"><input type="button" class="submit"  /><div class="nogoodschoose">您需先保存配送信息，再提交订单</div><span class="loading"></span>
								<span class="success"></span></li>
	
		</div>
	</div>
	</form>
</div>


		<div class="clear"></div>
		<!--尾部-->
<include file="__TEMPLATE__/carfoot" />
	<!--尾部-->

</body>
</html>